package com.example.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.dao.DrawingDao;
import com.example.domain.Drawing;
import com.example.service.DrawingService;

@Service
public class DrawingServiceImpl implements DrawingService {

	@Autowired
	private DrawingDao drawingDao;

	@Override
	public Drawing findById(Integer id) {
		return drawingDao.findById(id);
	}

	@Override
	public List<Drawing> findAll() {
		return drawingDao.findAll();
	}

	@Override
	public void insert(Drawing drawing) {
		drawingDao.insert(drawing);
	}

}
